package com.neusoft.admin.method;

public class GetColor {
    public static String getColor(String grade) {
        switch (grade) {
            case "优(一)", "一级":
                return "-fx-text-fill: #02E300;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            case "良(二)", "二级":
                return "-fx-text-fill:rgb(188, 178, 45);-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            case "轻度污染(三)", "三级":
                return "-fx-text-fill: #FF7E00;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            case "中度污染(四)", "四级":
                return "-fx-text-fill: #FE0000;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            case "重度污染(五)", "五级":
                return "-fx-text-fill: #98004B;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            case "严重污染(六)", "六级":
                return "-fx-text-fill: #7E0123;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
            default:
                return "-fx-text-fill: #000000;-fx-font-weight: bold;-fx-font-size:16px; -fx-font-family: 'Simsun';";
        }
    }
}